package com.wei.frame.bean;

import com.google.gson.annotations.SerializedName;

/**
 * 作者:赵若位
 * 时间:2021/7/1 10:22
 * 功能:
 */
public class BaseBean<T> {

    @SerializedName("reason")
    private String message;

    @SerializedName("error_code")
    private int code;

    private ResultBean<T> result;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ResultBean<T> getResult() {
        return result;
    }

    public void setResult(ResultBean<T> result) {
        this.result = result;
    }


    public static class ResultBean<T> {

        private String stat;
        private String page;
        private String pageSize;
        private T data;

        public String getStat() {
            return stat;
        }

        public void setStat(String stat) {
            this.stat = stat;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public String getPageSize() {
            return pageSize;
        }

        public void setPageSize(String pageSize) {
            this.pageSize = pageSize;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }
    }
}
